2 username="lykos@d125a37d89b1cfac20829f12911656c40cb70018"
4 avatar="http://cdn.libravatar.org/avatar/085df7b04d3408ba23c19f9c49be9ea2"
6 date="2020-03-26T20:36:28Z"
8 When testing a new version of git-annex-remote-googledrive, I often use a wrapper script like this:
14 log_file=$(mktemp \"$(git rev-parse --git-dir 2>/dev/null)/annex/debug.XXX.log\" 2>/dev/null)
16 echo \"Error creating log file. Proceeding without logging.\"
21 git annex $@ --debug 2> $log_file
23 echo \"Errors occurred. Debug log in $log_file\"
29 alias ga='f_git_annex'
31 It's good enough for me in those cases. Changing the first line of the function to something like this
33 log_file=$(umask 077; mktemp /tmp/annex.debug.XXX.log\" 2>/dev/null)
35 would help against accumulating logs.